package com.yanqu.road.server.cmd.activity.unionwar;


import com.yanqu.road.pb.activity.unionwar.CrossUnionWarProto;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.Command;
import com.yanqu.road.server.manger.activity.unionwar.UnionPhaseWarMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;
import io.netty.channel.ChannelHandlerContext;

@Cmd(code = Protocol.S_CROSS_UNION_WAR_REQ_FINALS_RESULT_FROM_CROSS,desc = "决赛淘汰信息从跨服下发")
public class UnionWarGetEliminationInfoCmdFromCross implements Command {

    @Override
    public void execute(ChannelHandlerContext ctx, YanQuMessage packet) throws Exception {
        CrossUnionWarProto.CrossGetEliminationInfoRespMsg respMsg = CrossUnionWarProto.CrossGetEliminationInfoRespMsg.parseFrom(packet.getBytes());
        UnionPhaseWarMgr.backUserGoodsInFinalsFromCross(respMsg.getActivityId(), respMsg);
    }
}
